package org.giovanolli.mumi.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * The Class Skill.
 */
@Entity
@Table(name = "skill")
public class Skill extends IdentificableEntity {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -3555127308299865797L;

	/** The name. */
	@Column(name = "name", unique = true)
	private String name;

	/** The description. */
	@Column(name = "description")
	private String description;

	/**
	 * Gets the description.
	 * 
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the description.
	 * 
	 * @param description
	 *            the new description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * Sets the name.
	 * 
	 * @param name
	 *            the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.entities.IdentificableEntity#toString()
	 */
	@Override
	public String toString() {
		return "Skill [name=" + name + ", description=" + description + "]";
	}

}
